package com.application.bisabahasakorea;

import com.application.bisabahasakorea.MenuPercakapanAdapter;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;


public class MenuPercakapanActivity extends ListActivity{
	
	static final String[] MENU = new String[] {"Perkenalan Diri","Pertemuan Pertama","Perpisahan","Di Penerbangan", "Di Terminal Kedatangan","Di Hotel","Di Jalan Raya"};
	
	@Override
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		
		setListAdapter(new MenuPercakapanAdapter(this, MENU));
		
	}
	

	@Override
	protected void onListItemClick(ListView l, View v, int position, long id){
		
		switch (position){
		case 0 :
			Intent intent = new Intent(this, MenuPerkenalanActivity.class);
			startActivity(intent);
			break;
		
		case 1 :
			Intent intent1 = new Intent(this, MenuPertemuanPertamaActivity.class);
			startActivity(intent1);
			break;
			
		case 2 :
			Intent intent2 = new Intent(this, MenuPerpisahanActivity.class);
			startActivity(intent2);
			break;
			
		case 3 :
			Intent intent3 = new Intent(this, MenuPenerbanganActivity.class);
			startActivity(intent3);
			break;
			
		case 4 :
			Intent intent4 = new Intent(this, MenuTerminalKedatanganActivity.class);
			startActivity(intent4);
			break;
			
		case 5 :
			Intent intent5 = new Intent(this, MenuHotelActivity.class);
			startActivity(intent5);
			break;
			
		case 6 :
			Intent intent6 = new Intent(this, MenuJalanActivity.class);
			startActivity(intent6);
			break;
			
		}
		
	}
	
}
